package com.hzw.net.net

/**
 *
 * @Author:         HuaZhongWei
 * @CreateDate:     2020/4/15 14:30
 *
 * @Description:    请求常量字段
 *
 */
object ApiConstant {
    /** ===========================================请求头固定添加字段============================================*/
    /**
     * token
     */
    const val HEADER_TOKEN = "token"

    /**
     * 版本
     */
    const val HEADER_VERSION = "version"

    /**
     * 平台类型，Android, IOS
     */
    const val HEADER_PLATFORM = "platform"

    /**
     * APP唯一ID，后台区分APP的字段
     */
    const val HEADER_APP_ID = "appid"

    /**
     * 时间戳
     */
    const val HEADER_TIMESTAMP = "timestamp"

    /**
     * 设备唯一ID
     */
    const val HEADER_DEVICE_ID = "deviceid"

    /**
     * 手机相关型号
     */
    const val DEVICE_NAME = "devicename"
    const val DEVICE_MODEL = "devicemodel"
    const val SYSTEM_VERSION = "systemversion"

    /** ===========================================请求头固定添加字段============================================*/

    /**
     * 默认超时时间， 30秒
     */
    const val DEFAULT_HTTP_TIMEOUT = 30 * 1000L
}

